package org.alis.rpc.common.paap.v2;

import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.core.env.ConfigurablePropertyResolver;

/**
 * @author lc
 * @version v2.6.3
 * @date 2020/9/4 13:54
 * @className ConfigUtils.class
 */
public class PropertiesPlaceholderConfigurer extends PropertySourcesPlaceholderConfigurer {

    private ConfigurablePropertyResolver prop;

    @Override
    protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess,final ConfigurablePropertyResolver propertyResolver){
        super.processProperties(beanFactoryToProcess, propertyResolver);
        prop = propertyResolver;
    }

    public ConfigurablePropertyResolver getProp(){
        return this.prop;
    }
}